package com.ay.shardingshere.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author: ay
 * @Date: 2021/6/29
 * @Description:
 **/
@Data
@Accessors(chain = true)
public class OrderInfo {

    /**
     * order_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '订单id(雪花算法)',
     *   `user_id` int(20) NOT NULL COMMENT '用户id',
     *   `address_id` bigint(20) NOT NULL COMMENT '地址id',
     *   `status` char(1) DEFAULT NULL COMMENT '订单状态',
     *   `create_time` datetime DEFAULT NULL COMMENT '创建时间',
     */
    private Long orderId;

    private Long userId;

    private Long addressId;

    private char status;

    private LocalDateTime createTime;
}
